<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>js/Api/Newnote.js</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title=""></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/Copier.html">Copier</a></li>
            
                <li><a href="../classes/delmem.html">delmem</a></li>
            
                <li><a href="../classes/delnote.html">delnote</a></li>
            
                <li><a href="../classes/delrelnote.html">delrelnote</a></li>
            
                <li><a href="../classes/delreluser.html">delreluser</a></li>
            
                <li><a href="../classes/deluser.html">deluser</a></li>
            
                <li><a href="../classes/err.html">err</a></li>
            
                <li><a href="../classes/getmems.html">getmems</a></li>
            
                <li><a href="../classes/getnote.html">getnote</a></li>
            
                <li><a href="../classes/getnotes.html">getnotes</a></li>
            
                <li><a href="../classes/getusers.html">getusers</a></li>
            
                <li><a href="../classes/newmem.html">newmem</a></li>
            
                <li><a href="../classes/newnote.html">newnote</a></li>
            
                <li><a href="../classes/newuser.html">newuser</a></li>
            
                <li><a href="../classes/putmemnote.html">putmemnote</a></li>
            
                <li><a href="../classes/putrelnote.html">putrelnote</a></li>
            
                <li><a href="../classes/putreluser.html">putreluser</a></li>
            
                <li><a href="../classes/Tools.Copier.html">Tools.Copier</a></li>
            
                <li><a href="../classes/Tools.inject.html">Tools.inject</a></li>
            
                <li><a href="../classes/Tools.isArray.html">Tools.isArray</a></li>
            
                <li><a href="../classes/Tools.lpad.html">Tools.lpad</a></li>
            
                <li><a href="../classes/Tools.map.html">Tools.map</a></li>
            
                <li><a href="../classes/ToolsService.html">ToolsService</a></li>
            
                <li><a href="../classes/updatenote.html">updatenote</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/Tools.html">Tools</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1 class="file-heading">File: js/Api/Newnote.js</h1>

<div class="file">
    <pre class="code prettyprint linenums">
App.Api.factory(&#x27;Api.Newnote&#x27;, [function () {
			/**
* Tworzy nową notatkę, lista powiązanych użytkowników jest pusta, lista powiązanych notatek również jest pusta. Czas jest ustawiony automatycznie na serwerze. Liczba notatek ograniczona do 1000.
* @class newnote
*/
function newnote(){
	/**
	* newnote
	* @property oper
	* @private 
	*/
	var oper = &#x27;newnote&#x27;,

	/**
	*  użytkownik, którego rola to user, zostaje właścicielem
	* @property user 
	* @private 
	*/
	user ,

	/**
	*  hasło tego użytkownika
	* @property pass 
	* @private 
	*/
	pass ,

	/**
	*  temat
	* @property topic 
	* @private 
	*/
	topic ,

	/**
	*  skrót, streszczenie
	* @property summary 
	* @private 
	*/
	summary ,

	/**
	*  klucze
	* @property keys 
	* @private 
	*/
	keys ,

	/**
	*  pełny tekst
	* @property text 
	* @private 
	*/
	text ,

	/**
	*  pełny tekst
	* @property text 
	* @private 
	*/
	text ,
	los,
	that = this;


	function getOper(noper){
		return oper;
	}
	function getUser(nuser){
		return user ;
	}
	function getPass(npass){
		return pass ;
	}
	function getTopic(ntopic){
		return topic ;
	}
	function getSummary(nsummary){
		return summary ;
	}
	function getKeys(nkeys){
		return keys ;
	}
	function getText(ntext){
		return text ;
	}
	function setUser(nuser){
		user  = nuser ;
	}
	function setPass(npass){
		pass  = npass ;
	}
	function setTopic(ntopic){
		topic  = ntopic ;
	}
	function setSummary(nsummary){
		summary  = nsummary ;
	}
	function setKeys(nkeys){
		keys  = nkeys ;
	}
	function setText(ntext){
		text  = ntext ;
	}
	function setLos (nLos) {
		los = nLos;
	}
	function toObject(){
		return{
			oper: oper,
			user : user ,
			pass : pass ,
			topic : topic ,
			summary : summary ,
			keys : keys ,
			text : text,
			los: los
		};
	}

	/**
 	* konstruktor
 	*
   	* @constructor         
  	* @method construct    
  	* @public              
 	*/
	(function newnote(){
		that.getOper = getOper;
		that.getUser = getUser;
		that.getPass = getPass;
		that.getTopic = getTopic;
		that.getSummary = getSummary;
		that.getKeys = getKeys;
		that.getText = getText;
		that.setUser = setUser;
		that.setPass = setPass;
		that.setTopic = setTopic;
		that.setSummary = setSummary;
		that.setKeys = setKeys;
		that.setText = setText;
		that.toObject = toObject;
		that.setLos = setLos;
	})();
}


newnote.fromObject = function (obj){
		var object = new newnote();
		object.setUser(obj.user);
		object.setPass(obj.pass);
		object.setTopic(obj.topic);
		object.setSummary(obj.summary);
		object.setKeys(obj.topic);
		object.setText(obj.text);
		object.setLos(new Date().getMilliseconds());
		return object;
	}

			return newnote;
		}]);
    </pre>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
